package com.example.controller;

import com.example.entity.AxdRiskUser;
import com.example.entity.ResponseResult;
import com.example.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 *  @author 雨安
 *  类名： LoginController
 *  创建时间：2024/3/18
 */
@RestController
@RequestMapping("/user")
public class LoginController {

    //装配
    @Autowired
    private LoginService loginService;


    @RequestMapping("/login")
    public ResponseResult login(@RequestBody AxdRiskUser riskUser){
        //登录
        return loginService.login(riskUser);
    }


}
